<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>每日站立会议</title>
<SCRIPT type="text/javascript">
function confirmRemove(a) {
	if (confirm("确定要删除这条会议记录吗？")) {
		window.location = "<%= request.getContextPath() %>/dailystandup/<s:property value="dailyStandup.id"/>/remove.action";
	}
}
</SCRIPT>
<style type="text/css">
#daily-standup-editor {
	text-align: center;
}
#daily-standup-editor table.layout {
	text-align: left;
	height: auto;
	display: inline;
}
#daily-standup-editor table.layout thead {
	background-color: #CCCCCC;
}
#head-date {
	width: 500px;
}
#daily-standup-editor table.layout textarea {
	width: 500px;
}
td, th {
	padding: 4px 4px 4px 4px; 
}
</style>
</head>
<body>

<s:form id="daily-standup-editor-form" namespace="/dailystandup" action="save" method="post">
	<s:if test="dailyStandup.id > 0">
		<s:hidden name="dailyStandup.id"/>
	</s:if> 
	<s:hidden name="dailyStandup.date" />
	<div id="daily-standup-editor">
	<table class="layout">
		<thead>
			<tr>
				<th id="head-date" colspan="4">
					<s:date name="dailyStandup.date" format="yyyy年MM月dd日"/>
				</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<td>P1</td>
				<td><s:textfield name="dailyStandup.pair.personOne" /></td>
				<td>P2</td>
				<td><s:textfield name="dailyStandup.pair.personTwo" /></td>
			</tr>
			<tr>
				<td colspan="4">完成</td>
			</tr>
			<tr>
				<td colspan="4"><s:textarea name="dailyStandup.done" rows="10" /></td>
			</tr>
			<tr>
				<td colspan="4">计划</td>
			</tr>
			<tr>
				<td colspan="4"><s:textarea name="dailyStandup.todo" rows="10" /></td>
			</tr>
			<tr>
				<td colspan="4">问题</td>
			</tr>
			<tr>
				<td colspan="4"><s:textarea name="dailyStandup.problem" rows="10"/></td>
			</tr>
		</tbody>
	</table>
	<br>
	<s:submit /><s:reset />
	<s:if test="dailyStandup.id > 0">
	<a href="#" onclick="confirmRemove(this)" class="noprint">删除</a>
	</s:if>
	<a href="<%= request.getContextPath() %>/dailystandup/week/<s:date name="dailyStandup.date" format="yyyy-MM-dd"/>/list.action">返回</a>
	</div>
</s:form>
</body>
</html>